package com.uls.lh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.lh.mapper.LhCarScheduleManagementMapper;
import com.uls.lh.domain.LhCarScheduleManagement;
import com.uls.lh.service.ILhCarScheduleManagementService;

/**
 * 车辆调度管理Service业务层处理
 * 
 * @author lh
 * @date 2024-11-29
 */
@Service
public class LhCarScheduleManagementServiceImpl implements ILhCarScheduleManagementService 
{
    @Autowired
    private LhCarScheduleManagementMapper lhCarScheduleManagementMapper;

    /**
     * 查询车辆调度管理
     * 
     * @param scheduleId 车辆调度管理主键
     * @return 车辆调度管理
     */
    @Override
    public LhCarScheduleManagement selectLhCarScheduleManagementByScheduleId(Long scheduleId)
    {
        return lhCarScheduleManagementMapper.selectLhCarScheduleManagementByScheduleId(scheduleId);
    }

    /**
     * 查询车辆调度管理列表
     * 
     * @param lhCarScheduleManagement 车辆调度管理
     * @return 车辆调度管理
     */
    @Override
    public List<LhCarScheduleManagement> selectLhCarScheduleManagementList(LhCarScheduleManagement lhCarScheduleManagement)
    {
        return lhCarScheduleManagementMapper.selectLhCarScheduleManagementList(lhCarScheduleManagement);
    }

    /**
     * 新增车辆调度管理
     * 
     * @param lhCarScheduleManagement 车辆调度管理
     * @return 结果
     */
    @Override
    public int insertLhCarScheduleManagement(LhCarScheduleManagement lhCarScheduleManagement)
    {
        return lhCarScheduleManagementMapper.insertLhCarScheduleManagement(lhCarScheduleManagement);
    }

    /**
     * 修改车辆调度管理
     * 
     * @param lhCarScheduleManagement 车辆调度管理
     * @return 结果
     */
    @Override
    public int updateLhCarScheduleManagement(LhCarScheduleManagement lhCarScheduleManagement)
    {
        return lhCarScheduleManagementMapper.updateLhCarScheduleManagement(lhCarScheduleManagement);
    }

    /**
     * 批量删除车辆调度管理
     * 
     * @param scheduleIds 需要删除的车辆调度管理主键
     * @return 结果
     */
    @Override
    public int deleteLhCarScheduleManagementByScheduleIds(Long[] scheduleIds)
    {
        return lhCarScheduleManagementMapper.deleteLhCarScheduleManagementByScheduleIds(scheduleIds);
    }

    /**
     * 删除车辆调度管理信息
     * 
     * @param scheduleId 车辆调度管理主键
     * @return 结果
     */
    @Override
    public int deleteLhCarScheduleManagementByScheduleId(Long scheduleId)
    {
        return lhCarScheduleManagementMapper.deleteLhCarScheduleManagementByScheduleId(scheduleId);
    }
}
